package cn.jyun.user.mapper;

import cn.jyun.user.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface UserMapper extends BaseMapper<User> {

    @Select("SELECT age,COUNT(*) AS total FROM tb_user GROUP BY age")
    List<Map> selectCountGroupByAge();

}
